package top.bulk.intemasking.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.bulk.intemasking.entity.UserEntity;

/**
 * 控制层
 *
 * @author 散装java
 * @date 2024-07-15
 */
@RestController
public class UserController {

    @GetMapping("/getUser")
    public UserEntity getUser() {
        // 返回一个 UserEntity 对象，查看脱敏效果
        return new UserEntity()
                .setName("bulk-java")
                .setAge(18)
                .setSex("男")
                .setPhoneNumber("13000000000")
                .setPhone("13000000000")
                .setEmail("bulk-java@qq.com")
                .setPassword("pw123456")
                .setIdCard("370681000000000001")
                .setBankCard("622202000000000001")
                .setAddress("江苏省南京市雨花区软件大道1106")
                .setAccount("散装java");
    }
}
